package com.sunjq.callback;

public class Callee implements CallBackInterface{

//	public void methodCall () {
//		caller.methodTobeCallBack();
//		System.out.println("methodCall");
//	}
//	
//	public Caller caller = new Caller();

	public void callbackInterfaceMethod() {
		
		System.out.println("Something need others to do, this is callback");
		
	}
	
	

	 public static void main(String args[])  
	    {  
	       Caller caller = new Caller();  
	       Callee callee = new Callee();
	       caller.setCallbackInterface(callee) ;
	       caller.doSomething();
	       
	       
	    } 
}
